//
// Created by Administrator on 2021/01/04 004.
//

#include <unistd.h>
#include <InnerThreadDemo.h>
#include "include/PThreadLearn.h"


int main(){
    /*PThreadLearn pl;
    pl.start5Thread();
    //主线程结束子线程也会跟着结束，因为进程结束了，所以如果主线程不是长时间运行的话，需要调用pthread_join 合并，否则子线程不会执行完就退出了
    sleep(3);*/

    int a = 12;
    int b = 23;
    int *const p = &a;
    std::cout<<*p<<endl;
    const int *q = &b;
    *q = a;
    std::cout<<*q<<endl;
//    InnerThreadDemo i;
//    i.startCalc();
//    this_thread::sleep_for(chrono::seconds(1));
    return 0;
}
